<template>
  <div class="homeHead">
    <router-link to="/search">
    <div class="search">
      <i class="iconfont">&#xe624;</i>
    </div>
    </router-link>
    <div class="headTab">{{ title }}</div>
  </div>
</template>
<script>
export default {
  name: "HomeHead",
  data() {
    return {};
  },
  components: {},
  props:{
    title:{
      type:String,
      default:"分类"
    }
  }
  // methods: {
  //   onsearch() {
    
  //   }
  // }
};
</script>

<style lang="less" scoped>
.homeHead {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  padding: 10px 10px 0;
  box-sizing: border-box;
  background-color: #ff406f;
  height: 80px;
  line-height: 80px;
  .search,
  .headTab {
    float: left;
    color: #fff;
    font-size: 20px;
  }
  .headTab {
    width: 80%;
    text-align: center;
  }
  .search {
    width: 10%;
    i {
      font-size: 28px;
    }
  }
}
</style>
